#!/usr/bin/env python2.5
#coding: utf8

#Author: Gang Li
#Date: 2010-04-10 18:20

class Task():
    def __init__(self, name, m = 1, r = 1, res={}, dir="/tmp"):
        """
           mr_url: map or reduce function moudule url address 
        """

        self.name = name
        self.m = m
        self.r = r
        self.res = res
        self.dir = dir

class SubTask():
    def __init__(self, pid, name, type="map", res = {}):
        """
           mr_url: map or reduce function moudule url address 
        """
        self.pid = pid
        self.name = name
        self.type = type
        self.res = res